package com.xjrh.traintravel.collector.netty.command.config;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 通讯协议命令-参数设置-01：车辆及服务器信息
 *
 * @author snps
 * @create 2022-01-27 13:50
 * @describe
 **/
public class Config01 extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 1982182110229431941L;


    /**
     * 设置内容
     *      0-全部
     *      1-服务器
     *      2-设备
     *      4-车辆
     */
    private int field1 = 0;

    /**
     * 服务器IP
     */
    private String field2;

    /**
     * 服务器端口
     */
    private int field3;

    /**
     * 设备-IP
     */
    private String field4;

    /**
     * 设备-端口
     */
    private int field5;

    /**
     * 设备-掩码
     */
    private String field6;

    /**
     * 设备-网关
     */
    private String field7;

    /**
     * 设备编号（与拨码开关对应）
     */
    private int field8;

    /**
     * 段号
     */
    private String field9;

    /**
     * 车列
     */
    private String field10;

    /**
     * 车号
     */
    private String field11;

    /**
     * 1车IP
     */
    private String field12;

    /**
     * 6车IP
     */
    private String field13;


    /**
     * Constructor
     */
    public Config01() {
        this.setCommonNo("01");
    }

    /**************************************
     * Getter and Setter
     */
    public int getField1() {
        return field1;
    }

    public void setField1(int field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    public int getField3() {
        return field3;
    }

    public void setField3(int field3) {
        this.field3 = field3;
    }

    public String getField4() {
        return field4;
    }

    public void setField4(String field4) {
        this.field4 = field4;
    }

    public int getField5() {
        return field5;
    }

    public void setField5(int field5) {
        this.field5 = field5;
    }

    public String getField6() {
        return field6;
    }

    public void setField6(String field6) {
        this.field6 = field6;
    }

    public String getField7() {
        return field7;
    }

    public void setField7(String field7) {
        this.field7 = field7;
    }

    public int getField8() {
        return field8;
    }

    public void setField8(int field8) {
        this.field8 = field8;
    }

    public String getField9() {
        return field9;
    }

    public void setField9(String field9) {
        this.field9 = field9;
    }

    public String getField10() {
        return field10;
    }

    public void setField10(String field10) {
        this.field10 = field10;
    }

    public String getField11() {
        return field11;
    }

    public void setField11(String field11) {
        this.field11 = field11;
    }

    public String getField12() {
        return field12;
    }

    public void setField12(String field12) {
        this.field12 = field12;
    }

    public String getField13() {
        return field13;
    }

    public void setField13(String field13) {
        this.field13 = field13;
    }


    @Override
    public String toString() {
        return "Config01{" +
                "field1=" + field1 +
                ", field2='" + field2 + '\'' +
                ", field3=" + field3 +
                ", field4='" + field4 + '\'' +
                ", field5=" + field5 +
                ", field6='" + field6 + '\'' +
                ", field7='" + field7 + '\'' +
                ", field8=" + field8 +
                ", field9='" + field9 + '\'' +
                ", field10='" + field10 + '\'' +
                ", field11='" + field11 + '\'' +
                ", field12='" + field12 + '\'' +
                ", field13='" + field13 + '\'' +
                '}';
    }

}